<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>MyPetstore</title>
    <link rel="stylesheet" href="../css/jpetstore.css" type="text/css" media="screen"/>

</head>
<body>
<div th:replace="common/top">

</div>

<div id="BackLink">
    <a href="/catalog/view">Return to Main Menu</a>
</div>

<div id="Catalog">

    <h2 th:text="${category.name}">category的name属性</h2>

    <table id="CPI">
        <tr>
            <th>Product ID</th>
            <th>Name</th>
        </tr>
        <tr th:each="product:${productList}">

            <td>
                <a th:href="@{/catalog/viewProduct?productId=}+${product.productId}" th:text="${product.productId}">Product
                    ID</a>
                <!--<a th:href="@{/catalog/viewProduct?productId=}+${product.productId}" th:text="${product.productId}>productId</a>-->
            </td>

            <td th:text="${product.name}">productname</td>
        </tr>

    </table>

</div>

<!--<div id="Main">-->
<div id="Separator">&nbsp;</div>
<!--</div>-->


<div th:replace="common/bottom">

</div>
</body>
</html>